package cn.battlecruiser.vishnu.auth.userdetails;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import cn.battlecruiser.vishnu.common.model.Userinfo;
import lombok.Data;

@Data
public class UserDetailsImpl  extends User {
	
	private static final long serialVersionUID = 5533468829001985782L;
	
	public UserDetailsImpl(Userinfo userVo,Collection<? extends GrantedAuthority>  authorities) {
		super(userVo.getUsername(), userVo.getPassword(),authorities);
	}


}
